const express = require('express');
const router = express.Router();
const articleController = require('../controllers/articleController');
console.log('articleRoutes.js:', articleController.getAllArticles);
router.get('/articles', articleController.getAllArticles);
router.get('/articles/:id', articleController.getArticleById);
router.post('/createArticles', articleController.createArticle);


module.exports = router;